<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>预案</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
    <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
</head>
<body>
<div class="layui-container" style="padding:2%">

    <div class="layui-layer-title" style="padding-top: 20px;">启动应急预案</div>
    <div class="layui-layer-content" >
        <div class="layui-tab-item layui-show">
            <form class="layui-form layui-clear" action="{:url('duty/event/setPlan')}" method="post" onsubmit="return false;">
                <div class="layui-inline">
                    <label class="layui-form-label">预案<i class="layui-icon arrow"></i></label>
                    <div class="layui-input-inline">
                        <select name="reservePlanId" lay-filter="reservePlanId" lay-verify="required"  id="reservePlanId" class="reservePlanId" lay-filter="reservePlanId">
                            <option ></option>
                            {volist name="planlist" id="vo"}
                            <option value="{$vo.id}"  {if !empty($reservePlanId)&&$reservePlanId==$vo.id}selected{/if}>{$vo.title}</option>
                            {/volist}
                        </select>
                    </div>
                </div>

                <div class="layui-inline">
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="{$eventId}">
                        <button class="layui-btn layui-btn-small " lay-submit lay-filter="begin" {if !empty($reservePlanId)}style="display:none;"{/if}> 立即启动预案</button>
                    </div>
                </div>
            </form>
        </div>
        <div id="prepView" data-url="{:url('duty/event/plan')}"></div>
    </div>
</div>



<script type="text/javascript" src="__LAYUI__/layui.js"></script>
<script type="text/javascript" src="__JS__/duty/plan.js"></script>


</body>
</html>
